import com.example.demo.ExecutorBatch;
import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.ExecutionException;

/**
 * Created by Easettle
 * Date:2020/6/17 23:16
 * Email:easettle@qq.com
 */
@Slf4j
public class ThreadApplication {

    public static void main(String[] args) throws ExecutionException, InterruptedException {
        ExecutorBatch executorBatch = new ExecutorBatch();
        executorBatch.batchProcess();
        //效率高
        executorBatch.futureProcess();
    }
}
